package com.heu.blood.storge.exception;

import com.heu.blood.globalExceptionHandler.BaseErrorInfoInterface;

/**
 * @ClassName BloodBackException
 * @Description 退血操作异常
 * @Author lyj
 * @Date 2025/3/13 0:26
 */
public enum BloodBackException implements BaseErrorInfoInterface {
    DUPLICATE_BLOODID("2100","血液id同已退回血库血液重复");
    BloodBackException(String resultCode,String resultMsg){
        this.resultCode = resultCode;
        this.resultMsg = resultMsg;
    }

    // 错误码
    private final String resultCode;

    // 错误提示
    private final String resultMsg;
    @Override
    public String getResultCode() {
        return resultCode;
    }

    @Override
    public String getResultMsg() {
        return resultMsg;
    }
}
